Runs when an animation of this object reaches a frame that has a named event (set in the Animations window, for a footstep, a swing, a spawn point). Inside it, animation_event_name is the name you gave the event.
animation_event: fires on a frame of this object’s animation that has a named eventRuns when an animation of this object reaches a frame that has a named event (you set it in the Animations window: a footstep, a swing, a place to make a bullet). Inside it, animation_event_name is the name you gave.
It runs in the animation step of the frame, after Step and before drawing, once each time that frame starts. The first frame of an animation does its event in the step after animation_play was called.
A frame can also play a sound with no code at all.
if (animation_event_name == "swing") {
sound_play(snd_swing);
}Plays a sound on the frame marked "swing".
It runs in the animation step of the frame, after Step and before drawing, once each time the frame starts. The first frame of an animation does its event in the step after animation_play was called. A frame can also play a sound with no code at all.